package com.trt.eatmeat.util;

/**
 * @Author yufeng_ma@trtjk.com
 * @Description //TODO
 * @Date 2022/1/21 16:08
 **/
public enum HttpMethonType {
    get("get"),
    post("post"),
    post_json("post_json");

    private String name;

    HttpMethonType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    public static HttpMethonType getType(String name) {
        for (HttpMethonType c : HttpMethonType.values()) {
            if (c.getName().equals(name)) {
                return c;
            }
        }
        return HttpMethonType.get;
    }
}
